<template>
<!--  echarts容器默认宽高为0-->
  <div ref="mychart" id="demo" style="width: 100px"> </div>
</template>

<script>
import * as echarts from 'echarts';

export default {
  name: "Analyze",
  mounted() {
    let mycharts = echarts.init(this.$refs.mychart)
    mycharts.setOption({
      title:{
        text:"hello world"
      },
      xAxis:{
        data:["EZ","VN","NOC","MF"]
      },
      yAxis:{

      },
      series:{
        name:"lol大全",
        type:"bar",
        data:[6300,4800,3200,600],
        showBackground: true,
        backgroundStyle: {
          color: 'rgba(180, 180, 180, 0.2)'
        }
      }
    })
  }
}
</script>

<style scoped>
  #demo{
    width: 100px;
    height: 500px;
  }
</style>
